package com.star.mentor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.star.mentor.dto.EvaluationPageDTO;
import com.star.mentor.entity.Evaluation;
import com.star.mentor.vo.EvaluationDetailVO;
import com.star.mentor.vo.EvaluationPageVO;
import org.apache.ibatis.annotations.Param;

/**
 * 评估规则 Mapper 接口
 *
 * @author yangzj
 */
public interface EvaluationMapper extends BaseMapper<Evaluation> {

    /**
     * 分页
     *
     * @param dto 入参
     * @return {@link IPage}<{@link EvaluationPageVO}>
     */
    IPage<EvaluationPageVO> page(@Param("page") EvaluationPageDTO dto);

    /**
     * 获取详情
     *
     * @param id ID
     * @return {@link EvaluationDetailVO}
     */
    EvaluationDetailVO getDetail(@Param("id") Long id);
}
